/*
 * @                       .::::.
 * @                     .::::::::.
 * @                    :::::::::::
 * @                 ..:::::::::::'
 * @              '::::::::::::'
 * @                .::::::::::
 * @           '::::::::::::::..
 * @                ..::::::::::::.
 * @              ``::::::::::::::::
 * @               ::::``:::::::::'        .:::.
 * @              ::::'   ':::::'       .::::::::.
 * @            .::::'      ::::     .:::::::'::::.
 * @           .:::'       :::::  .:::::::::' ':::::.
 * @          .::'        :::::.:::::::::'      ':::::.
 * @         .::'         ::::::::::::::'         ``::::.
 * @     ...:::           ::::::::::::'              ``::.
 * @    ````':.          ':::::::::'                  ::::..
 * @                       '.:::::'                    ':'````..
 * 清洗库混入对象
 */

export const ClearLibMixin = {
  data() {
    return {
      washType: '',
      customParam:{},
    }
  },
  created() {
    this.getWashType()
  },
  methods: {
    getWashType() {
      let path = this.$route.path
      let washType = ''
      if(path.startsWith("/clearSoln/")){
          washType= 'HY'
      }else if(path.startsWith("/clearJy/")){
          washType= 'JY'
      }
      this.washType = washType
      this.customParam = Object.assign(this.customParam,{washType})
    },
    
  },
}
